# -*- coding: utf-8 -*-
from django.db import models

from intercampi.models.tipo_evento import TipoEvento

class Evento(models.Model):
    
    tipoEvento = models.ForeignKey(TipoEvento, verbose_name='Tipo do Evento')
    descricao = models.CharField('Descricao', max_length=100, null=True, blank=True)
    ativo = models.BooleanField('Ativo')
    valor = models.DecimalField('Valor', max_digits=10, decimal_places=2, null=True, blank=True)
    
    def __unicode__(self):
        return '%s: %s' % (self.tipoEvento.nome, self.descricao)
    
    class Meta():
        app_label = 'intercampi'

